import { rolelist } from '@/request/app';
const state = {
    list: ['角色', 2, 3, 4, 3, 34, 45, 5, 6, 6, 667, 7, 7, 7, 7, 7, 7, 7,]
}
const getters = {
    getlist(state: { list: any; }) {
        return state.list
    }
}
const mutations = {
    MUgetlist(state: { list: any; }, payload: any) {
        state.list = payload
    }
}
const actions = {
    ACgetlist(cotent:any) {
        rolelist(undefined).then((res:any) => {
            console.log(res.data.list);
            cotent.commit('MUgetlist',res.data.list)
        })
    }
}

export default ({
    state,
    getters,
    mutations,
    actions,
    namespaced: true
})

